home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / osi / isode / vmsisode / vmsisode80_tar.Z / vmsisode80_tar / sockit / gccinclude / x11 / x.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-24  |  18.4 KB  |  678 lines

  1. /*
  2.  *    $Header: X.h,v 1.65 87/09/07 14:57:14 toddb Exp $
  3.  */
  4. /*
  5. *****************************************************************************
  6. **                                                                          *
  7. **                         COPYRIGHT (c) 1988 BY                            *
  8. **             DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.                *
  9. **               ALL RIGHTS RESERVED                              *
  10. **                                                                          *
  11. **  THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND  COPIED  *
  12. **  ONLY  IN  ACCORDANCE  WITH  THE  TERMS  OF  SUCH  LICENSE AND WITH THE  *
  13. **  INCLUSION OF THE ABOVE COPYRIGHT NOTICE.  THIS SOFTWARE OR  ANY  OTHER  *
  14. **  COPIES  THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY  *
  15. **  OTHER PERSON.  NO TITLE TO AND OWNERSHIP OF  THE  SOFTWARE  IS  HEREBY  *
  16. **  TRANSFERRED.                                                            *
  17. **                                                                          *
  18. **  THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE  WITHOUT  NOTICE  *
  19. **  AND  SHOULD  NOT  BE  CONSTRUED  AS  A COMMITMENT BY DIGITAL EQUIPMENT  *
  20. **  CORPORATION.                                                            *
  21. **                                                                          *
  22. **  DIGITAL ASSUMES NO RESPONSIBILITY FOR THE USE OR  RELIABILITY  OF  ITS  *
  23. **  SOFTWARE ON EQUIPMENT WHICH IS NOT SUPPLIED BY DIGITAL.                 *
  24. **                                                                          *
  25. *****************************************************************************
  26. **++
  27. **  FACILITY:
  28. **
  29. **    < to be supplied >
  30. **
  31. **  ABSTRACT:
  32. **
  33. **    < to be supplied >
  34. **
  35. **  ENVIRONMENT:
  36. **
  37. **    < to be supplied >
  38. **
  39. **  MODIFICATION HISTORY:
  40. **
  41. **    < to be supplied >
  42. **
  43. **--
  44. **/
  45.  
  46. /* Definitions for the X window system likely to be used by applications */
  47.  
  48. #ifndef X_H
  49. #define X_H
  50.  
  51. #define X_PROTOCOL    11        /* current protocol version */
  52. #define X_PROTOCOL_REVISION 0        /* current minor version */
  53.  
  54. /* Resources */
  55.  
  56. typedef unsigned long XID;
  57.  
  58. typedef XID Window;
  59. typedef XID Drawable;
  60. typedef XID Font;
  61. typedef XID Pixmap;
  62. typedef XID Cursor;
  63. typedef XID Colormap;
  64. typedef XID GContext;
  65. typedef XID KeySym;
  66.  
  67. typedef unsigned long Mask;
  68.  
  69. typedef unsigned long Atom;
  70.  
  71. typedef unsigned long VisualID;
  72.  
  73. typedef unsigned long Time;
  74.  
  75. typedef unsigned char KeyCode;
  76.  
  77. /*****************************************************************
  78.  * RESERVED RESOURCE AND CONSTANT DEFINITIONS
  79.  *****************************************************************/
  80.  
  81. #define None                 0L    /* universal null resource or null atom */
  82.  
  83. #define ParentRelative       1L    /* background pixmap in CreateWindow
  84.                     and ChangeWindowAttributes */
  85.  
  86. #define CopyFromParent       0L    /* border pixmap in CreateWindow
  87.                        and ChangeWindowAttributes
  88.                    special VisualID and special window
  89.                        class passed to CreateWindow */
  90.  
  91. #define PointerWindow        0L    /* destination window in SendEvent */
  92. #define InputFocus           1L    /* destination window in SendEvent */
  93.  
  94. #define PointerRoot          1L    /* focus window in SetInputFocus */
  95.  
  96. #define AnyPropertyType      0L    /* special Atom, passed to GetProperty */
  97.  
  98. #define AnyKey             0L    /* special Key Code, passed to GrabKey */
  99.  
  100. #define AnyButton            0L    /* special Button Code, passed to GrabButton */
  101.  
  102. #define AllTemporary         0L    /* special Resource ID passed to KillClient */
  103.  
  104. #define CurrentTime          0L    /* special Time */
  105.  
  106. #define NoSymbol         0L    /* special KeySym */
  107.  
  108. /***************************************************************** 
  109.  * EVENT DEFINITIONS 
  110.  *****************************************************************/
  111.  
  112. /* Input Event Masks. Used as event-mask window attribute and as arguments
  113.    to Grab requests.  Not to be confused with event names.  */
  114.  
  115. #define NoEventMask            0L
  116. #define KeyPressMask            (1L<<0)  
  117. #define KeyReleaseMask            (1L<<1)  
  118. #define ButtonPressMask            (1L<<2)  
  119. #define ButtonReleaseMask        (1L<<3)  
  120. #define EnterWindowMask            (1L<<4)  
  121. #define LeaveWindowMask            (1L<<5)  
  122. #define PointerMotionMask        (1L<<6)  
  123. #define PointerMotionHintMask        (1L<<7)  
  124. #define Button1MotionMask        (1L<<8)  
  125. #define Button2MotionMask        (1L<<9)  
  126. #define Button3MotionMask        (1L<<10) 
  127. #define Button4MotionMask        (1L<<11) 
  128. #define Button5MotionMask        (1L<<12) 
  129. #define ButtonMotionMask        (1L<<13) 
  130. #define KeymapStateMask            (1L<<14)
  131. #define ExposureMask            (1L<<15) 
  132. #define VisibilityChangeMask        (1L<<16) 
  133. #define StructureNotifyMask        (1L<<17) 
  134. #define ResizeRedirectMask        (1L<<18) 
  135. #define SubstructureNotifyMask        (1L<<19) 
  136. #define SubstructureRedirectMask    (1L<<20) 
  137. #define FocusChangeMask            (1L<<21) 
  138. #define PropertyChangeMask        (1L<<22) 
  139. #define ColormapChangeMask        (1L<<23) 
  140. #define OwnerGrabButtonMask        (1L<<24) 
  141.  
  142. /* Event names.  Used in "type" field in XEvent structures.  Not to be
  143. confused with event masks above.  They start from 2 because 0 and 1
  144. are reserved in the protocol for errors and replies. */
  145.  
  146. #define KeyPress        2
  147. #define KeyRelease        3
  148. #define ButtonPress        4
  149. #define ButtonRelease        5
  150. #define MotionNotify        6
  151. #define EnterNotify        7
  152. #define LeaveNotify        8
  153. #define FocusIn            9
  154. #define FocusOut        10
  155. #define KeymapNotify        11
  156. #define Expose            12
  157. #define GraphicsExpose        13
  158. #define NoExpose        14
  159. #define VisibilityNotify    15
  160. #define CreateNotify        16
  161. #define DestroyNotify        17
  162. #define UnmapNotify        18
  163. #define MapNotify        19
  164. #define MapRequest        20
  165. #define ReparentNotify        21
  166. #define ConfigureNotify        22
  167. #define ConfigureRequest    23
  168. #define GravityNotify        24
  169. #define ResizeRequest        25
  170. #define CirculateNotify        26
  171. #define CirculateRequest    27
  172. #define PropertyNotify        28
  173. #define SelectionClear        29
  174. #define SelectionRequest    30
  175. #define SelectionNotify        31
  176. #define ColormapNotify        32
  177. #define ClientMessage        33
  178. #define MappingNotify        34
  179. #define LASTEvent        35    /* must be bigger than any event # */
  180.  
  181.  
  182. /* Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer,
  183.    state in various key-, mouse-, and button-related events. */
  184.  
  185. #define ShiftMask        (1<<0)
  186. #define LockMask        (1<<1)
  187. #define ControlMask        (1<<2)
  188. #define Mod1Mask        (1<<3)
  189. #define Mod2Mask        (1<<4)
  190. #define Mod3Mask        (1<<5)
  191. #define Mod4Mask        (1<<6)
  192. #define Mod5Mask        (1<<7)
  193.  
  194. /* modifier names.  Used to build a SetModifierMapping request or
  195.    to read a GetModifierMapping request.  These correspond to the
  196.    masks defined above. */
  197. #define ShiftMapIndex        0
  198. #define LockMapIndex        1
  199. #define ControlMapIndex        2
  200. #define Mod1MapIndex        3
  201. #define Mod2MapIndex        4
  202. #define Mod3MapIndex        5
  203. #define Mod4MapIndex        6
  204. #define Mod5MapIndex        7
  205.  
  206.  
  207. /* button masks.  Used in same manner as Key masks above. Not to be confused
  208.    with button names below. */
  209.  
  210. #define Button1Mask        (1<<8)
  211. #define Button2Mask        (1<<9)
  212. #define Button3Mask        (1<<10)
  213. #define Button4Mask        (1<<11)
  214. #define Button5Mask        (1<<12)
  215.  
  216. #define AnyModifier        (1<<15)  /* used in GrabButton, GrabKey */
  217.  
  218.  
  219. /* button names. Used as arguments to GrabButton and as detail in ButtonPress
  220.    and ButtonRelease events.  Not to be confused with button masks above.
  221.    Note that 0 is already defined above as "AnyButton".  */
  222.  
  223. #define Button1            1
  224. #define Button2            2
  225. #define Button3            3
  226. #define Button4            4
  227. #define Button5            5
  228.  
  229. /* Notify modes */
  230.  
  231. #define NotifyNormal        0
  232. #define NotifyGrab        1
  233. #define NotifyUngrab        2
  234. #define NotifyWhileGrabbed    3
  235.  
  236. #define NotifyHint        1    /* for MotionNotify events */
  237.                
  238. /* Notify detail */
  239.  
  240. #define NotifyAncestor        0
  241. #define NotifyVirtual        1
  242. #define NotifyInferior        2
  243. #define NotifyNonlinear        3
  244. #define NotifyNonlinearVirtual    4
  245. #define NotifyPointer        5
  246. #define NotifyPointerRoot    6
  247. #define NotifyDetailNone    7
  248.  
  249. /* Visibility notify */
  250.  
  251. #define VisibilityUnobscured        0
  252. #define VisibilityPartiallyObscured    1
  253. #define VisibilityFullyObscured        2
  254.  
  255. /* Circulation request */
  256.  
  257. #define PlaceOnTop        0
  258. #define PlaceOnBottom        1
  259.  
  260. /* protocol families */
  261.  
  262. #define FamilyInternet        0
  263. #define FamilyDECnet        1
  264. #define FamilyChaos        2
  265.  
  266. /* Property notification */
  267.  
  268. #define PropertyNewValue    0
  269. #define PropertyDelete        1
  270.  
  271. /* Color Map notification */
  272.  
  273. #define ColormapUninstalled    0
  274. #define ColormapInstalled    1
  275.  
  276. /* GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes */
  277.  
  278. #define GrabModeSync        0
  279. #define GrabModeAsync        1
  280.  
  281. /* GrabPointer, GrabKeyboard reply status */
  282.  
  283. #define GrabSuccess        0
  284. #define AlreadyGrabbed        1
  285. #define GrabInvalidTime        2
  286. #define GrabNotViewable        3
  287. #define GrabFrozen        4
  288.  
  289. /* AllowEvents modes */
  290.  
  291. #define AsyncPointer        0
  292. #define SyncPointer        1
  293. #define ReplayPointer        2
  294. #define AsyncKeyboard        3
  295. #define SyncKeyboard        4
  296. #define ReplayKeyboard        5
  297. #define AsyncBoth        6
  298. #define SyncBoth        7
  299.  
  300. /* Used in SetInputFocus, GetInputFocus */
  301.  
  302. #define RevertToNone        (int)None
  303. #define RevertToPointerRoot    (int)PointerRoot
  304. #define RevertToParent        2
  305.  
  306. /*****************************************************************
  307.  * ERROR CODES 
  308.  *****************************************************************/
  309.  
  310. #define Success           0    /* everything's okay */
  311. #define BadRequest       1    /* bad request code */
  312. #define BadValue       2    /* int parameter out of range */
  313. #define BadWindow       3    /* parameter not a Window */
  314. #define BadPixmap       4    /* parameter not a Pixmap */
  315. #define BadAtom           5    /* parameter not an Atom */
  316. #define BadCursor       6    /* parameter not a Cursor */
  317. #define BadFont           7    /* parameter not a Font */
  318. #define BadMatch       8    /* parameter mismatch */
  319. #define BadDrawable       9    /* parameter not a Pixmap or Window */
  320. #define BadAccess      10    /* depending on context:
  321.                  - key/button already grabbed
  322.                  - attempt to free an illegal 
  323.                    cmap entry 
  324.                 - attempt to store into a read-only 
  325.                    color map entry.
  326.                  - attempt to modify the access control
  327.                    list from other than the local host.
  328.                 */
  329. #define BadAlloc      11    /* insufficient resources */
  330. #define BadColor      12    /* no such colormap */
  331. #define BadGC          13    /* parameter not a GC */
  332. #define BadIDChoice      14    /* choice not in range or already used */
  333. #define BadName          15    /* font or color name doesn't exist */
  334. #define BadLength      16    /* Request length incorrect */
  335. #define BadImplementation 17    /* server is defective */
  336.  
  337. #define FirstExtensionError    128
  338. #define LastExtensionError    255
  339.  
  340. /*****************************************************************
  341.  * WINDOW DEFINITIONS 
  342.  *****************************************************************/
  343.  
  344. /* Window classes used by CreateWindow */
  345. /* Note that CopyFromParent is already defined as 0 above */
  346.  
  347. #define InputOutput        1
  348. #define InputOnly        2
  349.  
  350. /* Window attributes for CreateWindow and ChangeWindowAttributes */
  351.  
  352. #define CWBackPixmap        (1L<<0)
  353. #define CWBackPixel        (1L<<1)
  354. #define CWBorderPixmap        (1L<<2)
  355. #define CWBorderPixel           (1L<<3)
  356. #define CWBitGravity        (1L<<4)
  357. #define CWWinGravity        (1L<<5)
  358. #define CWBackingStore          (1L<<6)
  359. #define CWBackingPlanes            (1L<<7)
  360. #define CWBackingPixel            (1L<<8)
  361. #define CWOverrideRedirect    (1L<<9)
  362. #define CWSaveUnder        (1L<<10)
  363. #define CWEventMask        (1L<<11)
  364. #define CWDontPropagate            (1L<<12)
  365. #define CWColormap        (1L<<13)
  366. #define CWCursor            (1L<<14)
  367.  
  368. /* ConfigureWindow structure */
  369.  
  370. #define CWX            (1<<0)
  371. #define CWY            (1<<1)
  372. #define CWWidth            (1<<2)
  373. #define CWHeight        (1<<3)
  374. #define CWBorderWidth        (1<<4)
  375. #define CWSibling        (1<<5)
  376. #define CWStackMode        (1<<6)
  377.  
  378.  
  379. /* Bit Gravity */
  380.  
  381. #define ForgetGravity        0
  382. #define NorthWestGravity    1
  383. #define NorthGravity        2
  384. #define NorthEastGravity    3
  385. #define WestGravity        4
  386. #define CenterGravity        5
  387. #define EastGravity        6
  388. #define SouthWestGravity    7
  389. #define SouthGravity        8
  390. #define SouthEastGravity    9
  391. #define StaticGravity        10
  392.  
  393. /* Window gravity + bit gravity above */
  394.  
  395. #define UnmapGravity        0
  396.  
  397. /* Used in CreateWindow for backing-store hint */
  398.  
  399. #define NotUseful               0
  400. #define WhenMapped              1
  401. #define Always                  2
  402.  
  403. /* Used in GetWindowAttributes reply */
  404.  
  405. #define IsUnmapped        0
  406. #define IsUnviewable        1
  407. #define IsViewable        2
  408.  
  409. /* Used in ChangeSaveSet */
  410.  
  411. #define SetModeInsert           0
  412. #define SetModeDelete           1
  413.  
  414. /* Used in ChangeCloseDownMode */
  415.  
  416. #define DestroyAll              0
  417. #define RetainPermanent         1
  418. #define RetainTemporary         2
  419.  
  420. /* Window stacking method (in configureWindow) */
  421.  
  422. #define Above                   0
  423. #define Below                   1
  424. #define TopIf                   2
  425. #define BottomIf                3
  426. #define Opposite                4
  427.  
  428. /* Circulation direction */
  429.  
  430. #define RaiseLowest             0
  431. #define LowerHighest            1
  432.  
  433. /* Property modes */
  434.  
  435. #define PropModeReplace         0
  436. #define PropModePrepend         1
  437. #define PropModeAppend          2
  438.  
  439. /*****************************************************************
  440.  * GRAPHICS DEFINITIONS
  441.  *****************************************************************/
  442.  
  443. /* graphics functions, as in GC.alu */
  444.  
  445. #define    GXclear            0x0        /* 0 */
  446. #define GXand            0x1        /* src AND dst */
  447. #define GXandReverse        0x2        /* src AND NOT dst */
  448. #define GXcopy            0x3        /* src */
  449. #define GXandInverted        0x4        /* NOT src AND dst */
  450. #define    GXnoop            0x5        /* dst */
  451. #define GXxor            0x6        /* src XOR dst */
  452. #define GXor            0x7        /* src OR dst */
  453. #define GXnor            0x8        /* NOT src AND NOT dst */
  454. #define GXequiv            0x9        /* NOT src XOR dst */
  455. #define GXinvert        0xa        /* NOT dst */
  456. #define GXorReverse        0xb        /* src OR NOT dst */
  457. #define GXcopyInverted        0xc        /* NOT src */
  458. #define GXorInverted        0xd        /* NOT src OR dst */
  459. #define GXnand            0xe        /* NOT src OR NOT dst */
  460. #define GXset            0xf        /* 1 */
  461.  
  462. /* LineStyle */
  463.  
  464. #define LineSolid        0
  465. #define LineOnOffDash        1
  466. #define LineDoubleDash        2
  467.  
  468. /* capStyle */
  469.  
  470. #define CapNotLast        0
  471. #define CapButt            1
  472. #define CapRound        2
  473. #define CapProjecting        3
  474.  
  475. /* joinStyle */
  476.  
  477. #define JoinMiter        0
  478. #define JoinRound        1
  479. #define JoinBevel        2
  480.  
  481. /* fillStyle */
  482.  
  483. #define FillSolid        0
  484. #define FillTiled        1
  485. #define FillStippled        2
  486. #define FillOpaqueStippled    3
  487.  
  488. /* fillRule */
  489.  
  490. #define EvenOddRule        0
  491. #define WindingRule        1
  492.  
  493. /* subwindow mode */
  494.  
  495. #define ClipByChildren        0
  496. #define IncludeInferiors    1
  497.  
  498. /* SetClipRectangles ordering */
  499.  
  500. #define Unsorted        0
  501. #define YSorted            1
  502. #define YXSorted        2
  503. #define YXBanded        3
  504.  
  505. /* CoordinateMode for drawing routines */
  506.  
  507. #define CoordModeOrigin        0    /* relative to the origin */
  508. #define CoordModePrevious       1    /* relative to previous point */
  509.  
  510. /* Polygon shapes */
  511.  
  512. #define Complex            0    /* paths may intersect */
  513. #define Nonconvex        1    /* no paths intersect, but not convex */
  514. #define Convex            2    /* wholly convex */
  515.  
  516. /* Arc modes for PolyFillArc */
  517.  
  518. #define ArcChord        0    /* join endpoints of arc */
  519. #define ArcPieSlice        1    /* join endpoints to center of arc */
  520.  
  521. /* GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into
  522.    GC.stateChanges */
  523.  
  524. #define GCFunction              (1L<<0)
  525. #define GCPlaneMask             (1L<<1)
  526. #define GCForeground            (1L<<2)
  527. #define GCBackground            (1L<<3)
  528. #define GCLineWidth             (1L<<4)
  529. #define GCLineStyle             (1L<<5)
  530. #define GCCapStyle              (1L<<6)
  531. #define GCJoinStyle        (1L<<7)
  532. #define GCFillStyle        (1L<<8)
  533. #define GCFillRule        (1L<<9) 
  534. #define GCTile            (1L<<10)
  535. #define GCStipple        (1L<<11)
  536. #define GCTileStipXOrigin    (1L<<12)
  537. #define GCTileStipYOrigin    (1L<<13)
  538. #define GCFont             (1L<<14)
  539. #define GCSubwindowMode        (1L<<15)
  540. #define GCGraphicsExposures     (1L<<16)
  541. #define GCClipXOrigin        (1L<<17)
  542. #define GCClipYOrigin        (1L<<18)
  543. #define GCClipMask        (1L<<19)
  544. #define GCDashOffset        (1L<<20)
  545. #define GCDashList        (1L<<21)
  546. #define GCArcMode        (1L<<22)
  547.  
  548. #define GCLastBit        22
  549. /*****************************************************************
  550.  * FONTS 
  551.  *****************************************************************/
  552.  
  553. /* used in QueryFont -- draw direction */
  554.  
  555. #define FontLeftToRight        0
  556. #define FontRightToLeft        1
  557.  
  558. #define FontChange        255
  559.  
  560. /*****************************************************************
  561.  *  IMAGING 
  562.  *****************************************************************/
  563.  
  564. /* ImageFormat -- PutImage, GetImage */
  565.  
  566. #define XYBitmap        0    /* depth 1, XYFormat */
  567. #define XYPixmap        1    /* depth == drawable depth */
  568. #define ZPixmap            2    /* depth == drawable depth */
  569.  
  570. /*****************************************************************
  571.  *  COLOR MAP STUFF 
  572.  *****************************************************************/
  573.  
  574. /* For CreateColormap */
  575.  
  576. #define AllocNone        0    /* create map with no entries */
  577. #define AllocAll        1    /* allocate entire map writeable */
  578.  
  579.  
  580. /* Flags used in StoreNamedColor, StoreColors */
  581.  
  582. #define DoRed            (1<<0)
  583. #define DoGreen            (1<<1)
  584. #define DoBlue            (1<<2)
  585.  
  586. /*****************************************************************
  587.  * CURSOR STUFF
  588.  *****************************************************************/
  589.  
  590. /* QueryBestSize Class */
  591.  
  592. #define CursorShape        0    /* largest size that can be displayed */
  593. #define TileShape        1    /* size tiled fastest */
  594. #define StippleShape        2    /* size stippled fastest */
  595.  
  596. /***************************************************************** 
  597.  * KEYBOARD/POINTER STUFF
  598.  *****************************************************************/
  599.  
  600. #define AutoRepeatModeOff    0
  601. #define AutoRepeatModeOn    1
  602. #define AutoRepeatModeDefault    2
  603.  
  604. #define LedModeOff        0
  605. #define LedModeOn        1
  606.  
  607. /* masks for ChangeKeyboardControl */
  608.  
  609. #define KBKeyClickPercent    (1L<<0)
  610. #define KBBellPercent        (1L<<1)
  611. #define KBBellPitch        (1L<<2)
  612. #define KBBellDuration        (1L<<3)
  613. #define KBLed            (1L<<4)
  614. #define KBLedMode        (1L<<5)
  615. #define KBKey            (1L<<6)
  616. #define KBAutoRepeatMode    (1L<<7)
  617.  
  618. #define MappingSuccess         0
  619. #define MappingBusy            1
  620. #define MappingFailed        2
  621.  
  622. #define MappingModifier        0
  623. #define MappingKeyboard        1
  624. #define MappingPointer        2
  625.  
  626. /*****************************************************************
  627.  * SCREEN SAVER STUFF 
  628.  *****************************************************************/
  629.  
  630. #define DontPreferBlanking    0
  631. #define PreferBlanking        1
  632. #define DefaultBlanking        2
  633.  
  634. #define DisableScreenSaver    0
  635. #define DisableScreenInterval    0
  636.  
  637. #define DontAllowExposures    0
  638. #define AllowExposures        1
  639. #define DefaultExposures    2
  640.  
  641. /* for ForceScreenSaver */
  642.  
  643. #define ScreenSaverReset 0
  644. #define ScreenSaverActive 1
  645.  
  646. /*****************************************************************
  647.  * HOSTS AND CONNECTIONS
  648.  *****************************************************************/
  649.  
  650. /* for ChangeHosts */
  651.  
  652. #define HostInsert        0
  653. #define HostDelete        1
  654.  
  655. /* for ChangeAccessControl */
  656.  
  657. #define EnableAccess        1      
  658. #define DisableAccess        0
  659.  
  660. /* Display classes  used in opening the connection 
  661.  * Note that the statically allocated ones are even numbered and the
  662.  * dynamically changeable ones are odd numbered */
  663.  
  664. #define StaticGray        0
  665. #define GrayScale        1
  666. #define StaticColor        2
  667. #define PseudoColor        3
  668. #define TrueColor        4
  669. #define DirectColor        5
  670.  
  671.  
  672. /* Byte order  used in imageByteOrder and bitmapBitOrder */
  673.  
  674. #define LSBFirst        0
  675. #define MSBFirst        1
  676.  
  677. #endif /* X_H */
  678.